package cn.iocoder.yudao.module.infra.dal.mysql.base;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.infra.dal.dataobject.base.TreeDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @Entity generator..SysTreeModel
 */
@Mapper
public interface TreeMapper extends BaseMapperX<TreeDO> {

    List<TreeDO> listByType(@Param("type") String type);

    List<TreeDO> listByTypeAndParentId(@Param("type") String type, @Param("parentId") Integer parentId);

    int delByFullParentIdLike(@Param("fullParentId") String fullParentId);

    List<TreeDO> listType();

    List<TreeDO> listAllByIdIn(@Param("idList") Collection<Integer> idList);

}




